
package org.springframework.aop.support;

import java.io.Serializable;

import org.springframework.aop.ClassFilter;

@SuppressWarnings("serial")
public class RootClassFilter implements ClassFilter, Serializable {

	private Class<?> clazz;

	public RootClassFilter(Class<?> clazz) {
		this.clazz = clazz;
	}

	@Override
	public boolean matches(Class<?> candidate) {
		return clazz.isAssignableFrom(candidate);
	}
}
